#pragma once
#include "pch.h"
#include "common_utils.h"
#include <afxsock.h>
#include <map>
#include <vector>

using namespace std;

struct struIni
{
	CString sub;
	CString item;
};

class CConfigIniS
{
public:

	BOOL Init(CString path, CString *result);
	BOOL ReadIniValue(CString sub, CString item, int*value);
	BOOL ReadIniValue(CString sub, CString item, double*value);
	BOOL ReadIniValue(CString sub, CString item, CString*value);
	BOOL SaveIniValue(CString sub, CString item, int value);
	BOOL SaveIniValue(CString sub, CString item, double value);
	BOOL SaveIniValue(CString sub, CString item, CString value);

	BOOL SaveValueList();

private:

	map<struIni*, CString*> iniMapCStr;
	map<struIni*, int*> iniMapInt;
	map<struIni*, double*> iniMapDou;

	CString ConfigIniPath;
};

class CConfigXml
{
public:

private:

};




